cmake_minimum_required(VERSION 2.8 FATAL_ERROR) 
project(leg)
find_package(gazebo REQUIRED) 
include_directories(${GAZEBO_INCLUDE_DIRS}) 
include_directories(lib) 
include_directories(user) 
link_directories(${GAZEBO_LIBRARY_DIRS}) 
link_directories(.) 
link_directories(/usr/local/lib/x86_64-linux-gnu) 
list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}") 
#add_subdirectory(./dmp)
aux_source_directory(./lib DIR_SRCS)
aux_source_directory(./user DIR_SRCS)
#set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/model)
add_library(leg SHARED ${DIR_SRCS}) 
target_link_libraries(leg ${GAZEBO_LIBRARIES} rt ) 

